package com.sgb.kjwl.model.entity.transport;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.google.gson.annotations.SerializedName;
import com.swgk.core.base.model.entity.VideoBean;

import java.util.List;

public class CarHallEntity implements MultiItemEntity {

    private String type;

    private long carCreateTime;
    private String carImage;
    //车长名称
    private String carLenName;
    //车牌号
    private String carNumber;
    @SerializedName(value = "carOwnerImage", alternate = {"logo"})
    private String carOwnerImage;
    //姓名
    @SerializedName(value = "name")
    private String name;
    private String carOwnerName;//弃用
    //车型
    private String carTypeName;
    //车辆当前省
    private String provinceName;
    private String provinceNo;
    //车辆当前市
    private String cityName;
    private String cityNo;
    //车辆当前区
    private String districtName;
    private String districtNo;
    private Double distance;
    /**
     * 车辆id
     **/
    @SerializedName(value = "id", alternate = {"driverAuthId"})
    private String driverAuthId;

    /**
     * 车辆No
     */
    @SerializedName(value = "no")
    private String driverAuthNo;
    //栏高
    private String heightHurdle;
    //是否自卸 0不自卸 1自卸
    @SerializedName(value = "isDumper",alternate = "isDump")
    private Integer isDump;

    private String userNo;
    //重量
    private Double weight;
    //电话
    private String telphone;
    private List<VideoBean> videoList;
    private String driverCreateIm;

    private String companyNo;
    private Long authTime;

    public Long getAuthTime() {
        return authTime;
    }

    public void setAuthTime(Long authTime) {
        this.authTime = authTime;
    }

    public String getCompanyNo() {
        return companyNo;
    }

    public void setCompanyNo(String companyNo) {
        this.companyNo = companyNo;
    }

    public String getDriverCreateIm() {
        return driverCreateIm;
    }

    public void setDriverCreateIm(String driverCreateIm) {
        this.driverCreateIm = driverCreateIm;
    }
    private String img;
    private String roleName;
    private String releaseName;
    private int terminal;

    public int getTerminal() {
        return terminal;
    }

    public void setTerminal(int terminal) {
        this.terminal = terminal;
    }

    public String getReleaseName() {
        return releaseName;
    }

    public void setReleaseName(String releaseName) {
        this.releaseName = releaseName;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public long getCarCreateTime() {
        return carCreateTime;
    }

    public void setCarCreateTime(long carCreateTime) {
        this.carCreateTime = carCreateTime;
    }

    public String getCarImage() {
        return carImage;
    }

    public void setCarImage(String carImage) {
        this.carImage = carImage;
    }

    public String getCarLenName() {
        return carLenName;
    }

    public void setCarLenName(String carLenName) {
        this.carLenName = carLenName;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public String getCarOwnerImage() {
        return carOwnerImage;
    }

    public void setCarOwnerImage(String carOwnerImage) {
        this.carOwnerImage = carOwnerImage;
    }

    public String getCarOwnerName() {
        return carOwnerName;
    }

    public void setCarOwnerName(String carOwnerName) {
        this.carOwnerName = carOwnerName;
    }

    public String getCarTypeName() {
        return carTypeName;
    }

    public void setCarTypeName(String carTypeName) {
        this.carTypeName = carTypeName;
    }

    public String getCityName() {
        if (cityName==null)
            return "";
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getCityNo() {
        return cityNo;
    }

    public void setCityNo(String cityNo) {
        this.cityNo = cityNo;
    }

    public Double getDistance() {
        return distance;
    }

    public void setDistance(Double distance) {
        this.distance = distance;
    }

    public String getDistrictName() {
        if (districtName==null)
            return "";
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }

    public String getDistrictNo() {
        return districtNo;
    }

    public void setDistrictNo(String districtNo) {
        this.districtNo = districtNo;
    }

    public String getDriverAuthId() {
        return driverAuthId;
    }

    public void setDriverAuthId(String driverAuthId) {
        this.driverAuthId = driverAuthId;
    }

    public String getDriverAuthNo() {
        return driverAuthNo;
    }

    public void setDriverAuthNo(String driverAuthNo) {
        this.driverAuthNo = driverAuthNo;
    }

    public String getHeightHurdle() {
        return heightHurdle;
    }

    public void setHeightHurdle(String heightHurdle) {
        this.heightHurdle = heightHurdle;
    }

    public Integer getIsDumper() {
        return isDump;
    }

    public void setIsDumper(Integer isDumper) {
        this.isDump = isDumper;
    }

    public String getProvinceName() {
        if (provinceName==null)
            return "";
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getProvinceNo() {
        return provinceNo;
    }

    public void setProvinceNo(String provinceNo) {
        this.provinceNo = provinceNo;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    public List<VideoBean> getVideoList() {
        return videoList;
    }

    public void setVideoList(List<VideoBean> videoList) {
        this.videoList = videoList;
    }

    public boolean isCheckMoreVideos() {
        return ("查看更多视频").equals(getType());
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public int getItemType() {
        //普通车辆信息
        int itemType = SingleItemConstant.TYPE_ONE;
        if (videoList != null && videoList.size() == 1) {
            //单图
            itemType = SingleItemConstant.TYPE_THREE;
        } else if (videoList != null) {
            //多图
            itemType = SingleItemConstant.TYPE_TWO;
        }
        return itemType;
    }
}
